package com.yanyu.space.common.auth.support;

import cn.dev33.satoken.config.SaTokenConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * @author yanyu
 */
@Data
@ConfigurationProperties(prefix = "space.sa-token")
public class SaTokensPropoerties extends SaTokenConfig {

    /**
     * 类型
     */
    private Map<String, SaTokenConfig> types;

    /**
     * 注解拦截器
     */
    private Boolean annInterceptEnabled = Boolean.TRUE;

    /**
     * 路由拦截器
     */
    private Boolean routeInterceptEnabled = Boolean.TRUE;
}
